<?php

namespace App\Library\Requests\Product;

use App\Library\Requests\Base\BasePageRequest;

class ProductUserPageRequest extends BasePageRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            'productCategoryIdOne' => 'nullable|integer',
            'productCategoryIdTwo' => 'nullable|integer',
            'productCategoryIdThree' => 'nullable|integer',
            'allCategoryIdThree' => 'nullable|integer',
            'listType' => 'nullable|integer|between:0,2',
            'productName' => 'nullable|string|max:255',
            'productBrand' => 'nullable|string|max:255',
            'productActivityType' => 'nullable|integer',
            'isBlackGold' => 'nullable|boolean',
            'isCommission' => 'nullable|boolean',
            'isAgent' => 'nullable|boolean',
        ]);
    }
}
